// import { createPinia } from 'pinia';
// import piniaPersist from 'pinia-plugin-persist-uni';
// export * from './modules';

// // 创建
// export const pinia = createPinia();

// pinia.use(piniaPersist);

import { createPinia } from 'pinia'
export * from './modules';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const store = createPinia()

store.use(piniaPluginPersistedstate)

export default store
